var a = getApp();

Page({
    data: {
        URL: null,
        showPages: !1,
        shareOptions: {}
    },
    onLoad: function(t) {
        var i = wx.getStorageSync("yz_uid"), n = 0;
        if (i && (n = i), t.mark_id) {
            var e = a.globalData.host + "/addons/yun_shop/?menu#/picture_album?mark=picture_album&i=" + a.globalData.uniacid + "&mark_id=" + t.mark_id + "&mid=" + n;
            this.setData({
                URL: e,
                showPages: !0
            });
        } else wx.showToast({
            title: "缺失必要参数！"
        });
    },
    getMessage: function(a) {
        var t = a.detail.data[a.detail.data.length - 1];
        this.data.shareOptions = JSON.parse(t);
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        var a = wx.getStorageSync("yz_uid"), t = 0;
        return a && (t = a), {
            path: "/packageI/pictureAlbum/index?mark_id=".concat(this.options.mark_id, "&mid=").concat(t),
            title: this.data.shareOptions.title,
            imageUrl: this.data.shareOptions.image
        };
    }
});